package com.nuanshui.heatedloan.credit.dal.mapper;

import com.nuanshui.heatedloan.credit.form.CustomerIdCardInfoForm;
import com.nuanshui.heatedloan.credit.vo.CustomerIdCardInfoVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerIdCardInfoMapper {
	    
	    /***
	     * 新增客户身份信息
	     * @param customerIdCardInfoForm
	     */
        void saveCustomerIdCardInfo(CustomerIdCardInfoForm customerIdCardInfoForm);
       
       /***
	     * 修改客户身份信息
	     * @param customerIdCardInfoForm
	     */
       void updateCustomerIdCardInfo(CustomerIdCardInfoForm customerIdCardInfoForm);
       
       
       /***
        * 获取身份信息
        * @param id
        * @return
        */
       CustomerIdCardInfoVO loadVO(@Param("id") String id);
       
       
       /***
        * 删除客户信息
        * @param id
        */
       void deleteCustomerIdCardInfo(@Param("id") String id);

    /***
     * 根据userid获取这个人的身份信息
     * @param userId
     * @return
     */
    CustomerIdCardInfoVO loadByUserId(@Param("userId") String userId);

    /***
     * 获取所有的数据
     * @return
     */
    List<CustomerIdCardInfoVO> getAllCustomerIdCardInfoVO();
}
